<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>小熊奔跑</title>
    <style>
        @keyframes BearRun {
            0%{
                background-position: 0 0;
            }

            100%{
                background-position: -1600px 0;
            }
        }

        @keyframes mover {

            0%{
                left: 0%;
                transform: translateX(0);
            }

            100%{
                left: 50%;
                transform: translateX(-50%);
            }
        }

        .c2{
            position: relative;
            width: 500px;
            height: 500px;
            background-color: black;
        }
        .c1{
            position: absolute;
            width: 200px;
            height: 100px;
            background: url("../../../Img/bear.png") no-repeat;
            animation: BearRun 1s infinite steps(8), mover 2s forwards;
        }
    </style>
</head>

<body>
    <div class="c2">
        <div class="c1"></div>
    </div>


</body>
</html>